home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_01_02
/
1n02044a
< prev
next >
Wrap
Text File
|
1990-07-08
|
518b
|
29 lines
#include "stdio.h"
int main(void);
void inhex(int i);
void indec(int i);
int main(void)
{
void (print_int *)(int i);
int i = 123;
print_int = inhex;
print_int(i);
print_int = indec;
print_int(i);
}
void inhex(int i)
{
printf("%x\n",i);
}
void indec(int i)
{
printf("%x\n",i);
}